availablePlayersFor

  • function
 

Filters the [bitballs/components/tournament/details.ViewModel.prototype.players players] list to exclude players that are already assigned to a Team.

details.availablePlayersFor(team, number)

Filters the [bitballs/components/tournament/details.ViewModel.prototype.players players] list to exclude players that are already assigned to a Team.

Parameters

  1. team {String}

    A reference to a Team model instance.

  2. number {Number}

    The player number on the team.

Returns

{List | Array}

An array of Team models.